package com.example.service.impl;

import com.example.entity.LeaveRecords;
import com.example.mapper.LeaveRecordsMapper;
import com.example.service.LeaveRecordsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @Author 张甲升
 * @create 2021-11-09-14:31
 */
@Service
public class LeaveRecordsServiceImpl implements LeaveRecordsService {
    @Resource
    private LeaveRecordsMapper leaveRecordsMapper;
    @Override
    public List<LeaveRecords> query() {
        List<LeaveRecords> leaveRecords = leaveRecordsMapper.query();
        return leaveRecords;
    }

    @Override
    public int add(LeaveRecords leaveRecords) {
        return leaveRecordsMapper.add(leaveRecords);
    }

    @Override
    public int del(int id) {
        return leaveRecordsMapper.del(id);
    }
}
